package com.jdk18.inter;

/**
 * Created by xuyiwei on 2018/7/9.
 */
public class DefalutTestImpl implements DefalutTest {
    @Override
    public int sub(int a, int b) {
        return a+b;
    }

    public static void main(String[] args) {
        DefalutTestImpl defalutTest = new DefalutTestImpl();
        System.out.println(defalutTest.sub(1,3));
        defalutTest.defaultMethod();
        DefalutTest.staticMethod();
    }
}
